.class Lcom/waiqin365/lightapp/im/adapter/bv;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnLongClickListener;


# instance fields
.field final synthetic a:I

.field final synthetic b:Lcom/waiqin365/lightapp/im/adapter/bk;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/adapter/bk;I)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/adapter/bv;->b:Lcom/waiqin365/lightapp/im/adapter/bk;

    iput p2, p0, Lcom/waiqin365/lightapp/im/adapter/bv;->a:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLongClick(Landroid/view/View;)Z
    .locals 5

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bv;->b:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->b(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    iput-boolean v4, v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->e:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bv;->b:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/bv;->b:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/adapter/bk;->a(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/app/Activity;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/im/activity/AlertDialog;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/adapter/bv;->a:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "type"

    sget-object v3, Lcom/hyphenate/chat/EMMessage$Type;->FILE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v3}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    const/4 v2, 0x3

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/bv;->b:Lcom/waiqin365/lightapp/im/adapter/bk;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/bk;->b(Lcom/waiqin365/lightapp/im/adapter/bk;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    const v1, 0x7f040027

    invoke-virtual {v0, v1, v4}, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->overridePendingTransition(II)V

    const/4 v0, 0x1

    return v0
.end method
